﻿<Window x:Class="AutoDeploy.FrontEnd.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Auto Deploy" Loaded="Window_Loaded" mc:Ignorable="d" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" d:DesignHeight="536" d:DesignWidth="767" SizeToContent="WidthAndHeight">
    <Grid Height="489" Width="728">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="186*" />
            <ColumnDefinition Width="90*" />
            <ColumnDefinition Width="452*" />
        </Grid.ColumnDefinitions>
        <ComboBox Height="23" HorizontalAlignment="Left" Margin="13,12,0,0" Name="cmbDeploymentObject" VerticalAlignment="Top" Width="703" SelectionChanged="cmbDeploymentObject_SelectionChanged" Grid.ColumnSpan="3" />
           <!-- <ComboBox.ItemTemplate>
                <DataTemplate>
                    <StackPanel Orientation="Horizontal">
                        <Label Content="{Binding Path=id}" ></Label>
                        <Label Content="{Binding Path=FirstName}" ></Label>
                        <Label Content="{Binding Path=LastName}" ></Label>
                    </StackPanel>
                </DataTemplate>
            </ComboBox.ItemTemplate>
        </ComboBox> -->
        <DataGrid Height="239" Margin="13,41,12,0" Name="dgvDeploymentObject" VerticalAlignment="Top"  SelectionMode="Single" RowBackground="#82C9C9F8" Grid.ColumnSpan="3">
        </DataGrid>
        <GroupBox Header="Load Auto Deploy Configuration File:" Height="59" HorizontalAlignment="Left" Margin="1,427,0,0" Name="groupBox1" VerticalAlignment="Top" Width="721" Grid.ColumnSpan="3">
            <Grid Width="698">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="33*" />
                    <ColumnDefinition Width="102*" />
                    <ColumnDefinition Width="563*" />
                </Grid.ColumnDefinitions>
                <TextBox Height="23" HorizontalAlignment="Left" Margin="6,7,0,0" Name="tbAutoDeployFile" Text="c:\projects\autodeploy\autodeploy.xml" VerticalAlignment="Top" Width="458" Grid.ColumnSpan="3" />
                <Button Content="Load" Height="23" Margin="348,7,0,0" Name="butRun" VerticalAlignment="Top" Click="butRun_Click" Grid.Column="2" HorizontalAlignment="Left" Width="88" />
                <Button Content="Run Commands" Grid.Column="2" Height="23" HorizontalAlignment="Left" Margin="452,7,0,0" Name="butRunCommands" VerticalAlignment="Top" Width="105" Click="butRunCommands_Click" />
            </Grid>
        </GroupBox>
        <GroupBox Header="Commands that will run." Height="139" HorizontalAlignment="Left" Margin="1,286,0,0" Name="groupBox2" VerticalAlignment="Top" Width="721" Grid.ColumnSpan="3">
            <DataGrid AutoGenerateColumns="False" Height="107" Name="dgvCommandValues" Width="697">
                <DataGrid.Columns>
                    <DataGridCheckBoxColumn Header="Run" IsReadOnly="False" Binding="{Binding Path = Run}"/>
                    <DataGridTextColumn Header="Priority" IsReadOnly="True" Binding="{Binding Path = Priority}" />
                    <DataGridTextColumn Header="Command" IsReadOnly="True" Binding="{Binding Path = Command}" />
                    <DataGridTextColumn Header="Value To Run" IsReadOnly="True" Binding ="{Binding Path = Value}"/>
                </DataGrid.Columns>
            </DataGrid>
        </GroupBox>
    </Grid>
</Window>
